﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Palsta.Core.data
{
    public enum FieldType
    {
        String,
        XHTML,
        Integer,
        Double,
        Boolean,
        AnyURI,
        Date,
        Time,
        DateTime,
        Base64,
        ComplexType
    }

    abstract class Field
    {
        abstract public FieldType GetFieldType();

        abstract public String GetStringValue();

        abstract public Boolean SetValue(String v);

        virtual public Boolean Equels(Field f)
        {
            return false;
        }
        virtual public Boolean NotEquels(Field f)
        {
            return false;
        }
        virtual public Boolean GreaterThan(Field f)
        {
            return false;
        }
        virtual public Boolean LessThan(Field f)
        {
            return false;
        }
        virtual public Field Add(Field f)
        {
            return this;
        }


    }
}
